package com.wn55.hrms.mapper;

import com.wn55.hrms.entity.Salary;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Salary record);

    Salary selectByPrimaryKey(Integer id);

    List<Salary> selectAll();

    int updateByPrimaryKey(Salary record);

    List<Salary> listByCondition(String name);

    @Delete("delete from salary  where id=#{id}")
    void deleteByKey(Integer id);
}